package com.yang.springcloud.service;

import com.yang.springcloud.pojo.Member;
import com.yang.springcloud.pojo.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

@FeignClient(value = "SPRINGCLOUD-PROVIDER-MEMBER")
public interface MenberClientService {

    @PostMapping("/insertInfo")
    public Map<String, Object> insertMemberInfo(String info);

    @GetMapping("/queryAll")
    public List<Member> queryMemberAll();

    @GetMapping("/queryById/{passid}")
    public Student queryById(@PathVariable("passid") String passid);
}
